import request from '@/utils/request'

/**
 *用户登录
 * @param {*} data
 *
 */
export const loginAPI = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

/**
 * 获取用户信息
 * @returns promise对象
 */
export const userInfoAPI = () => {
  return request({
    url: '/sys/profile',
    method: 'post'

  })
}

/**
 * 获取员工基本信息
 * @param {*} id
 * @returns promise对象
 */
export const userPhotoAPI = (id) => {
  return request({
    url: `/sys/user/${id}`

  })
}
